package com.hb.B_面向对象.F_模式匹配

fun main() {
    println(constantPattern(9))
}
fun constantPattern(a:Int)=when(a){
    1->"it is 1"
    2->"it is 2"
    else -> "is other number"
}